﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Lucene.Net.Analysis;
using System.IO;

namespace Test.Analysis
{
     public class TestFactory
    {
          public static void TestFunc(Analyzer analyzer)
        {
            TokenStream ts = analyzer.ReusableTokenStream("", new StringReader(TestData.TestWords));
            Token token;
            while ((token = ts.Next()) != null)
            {
                Console.WriteLine(token.TermText());
            }
            ts.Close();
        }

    }
}
